<script setup>
	// 导入云对象
	const demoArt = uniCloud.importObject("demoArticles");
	// 新增文章
	const handleAddArt = async () => {
		let res = await demoArt.addArticles({
			title: "标题1",
			content: "内容1"
		});
		console.log(res);
	}
</script>
<template>
	<view class="">
		<button @click="handleAddArt">新增文章</button>
	</view>
</template>
<style lang="scss" scoped>

</style>